package com.ww.java.generic.method;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wanggw
 * @Date 2023年01月01 16:55
 */
public class GenericVarargs {
    public static <T> List<T> makeList(T... args) {
        List<T> list = new ArrayList<>();
        for (T arg : args) {
            list.add(arg);
        }
        return list;
    }

    public static void main(String[] args) {
        List<Character> ls = makeList('A');
        System.out.println(ls);

    }
}
